
// 做这个应该预留slot


import { Component, OnInit, ɵɵtrustConstantResourceUrl } from '@angular/core';

@Component({
  selector: 'app-effective-tool',
  templateUrl: './effective-tool.component.html',
  styleUrls: ['./effective-tool.component.css']
})
export class EffectiveToolComponent implements OnInit {

  constructor() { }
  // config
  cmp =  {
    list: [{
      name:'button',
    }, {
      name:'grid'
    }]
  }
  

  ngOnInit(): void {
    // 初始化cmp
    let cmps = document.querySelectorAll('[cmpitem]')
    let dropcon =document.querySelector('[resultcontainer]')
    // dropcon.ondrop = function(e) {
    //   alert()
    // }
    // cmps.forEach(item => {
    //   item.ondrag= function(e) {
    //   } 
    // })
  } 
}
